﻿@using XRepair.Conventions.Enum
@using xCache = MvcXRepairAdmin.CacheData

@model XRepair.Models.Brand

@{
    Layout = null;
    var deviceTypes = new List<SelectListItem>
    {
        new SelectListItem{Value="", Selected=true, Text="Select type of device"},
        new SelectListItem{Value=DeviceTypes.Laptop.ToString(), Selected=true, Text="Laptop"},
        new SelectListItem{Value=DeviceTypes.Mobile.ToString(), Selected=true, Text="Mobile"},
    };
    
}

@using (Html.BeginForm("AddNew", "Brand", FormMethod.Post))
{
    <table>
        <tbody>
            <tr>
                <td>Device Type</td>
                <td>
                    @Html.DropDownListFor(x => x.GenericTypesID, deviceTypes)</td>
            </tr>

            <tr>
                <td>Brand Name</td>
                <td>
                    @Html.TextBoxFor(x => x.BrandName) </td>
            </tr>
        </tbody>
    </table>
    
    <input type="submit" value="Add" /><input type="button" value="Cancel" id="btnCancelAdd" />
}
